import Vue from 'vue';
import { Toast } from 'vant';

Vue.use(Toast);
export default {
  install(Vue, options) {
    Vue.prototype.Toast = function (i,type) {
      if (type==='success'){
        Toast.success(i);
      }else{
        Toast.fail(i);
      }

    }
  }
}
